<!DOCTYPE HTML>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="stylesheet" href="../css/currency/bootstrap.css"/>
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css"/>
    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="../css/recipe.css"/>
    <title>设备管理</title>
</head>

<body>
<nav class="breadcrumb" style="margin-bottom:0px"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span
        class="c-gray en">&gt;</span> 基础功能 <span class="c-gray en">&gt;</span>设备管理
    <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="pd-20" id="equipment">
    <div class="text-c" id="equipmentList">
        <form search-form>
            <!-- TODO 根据业务需要修改搜索内容-->
            <input type="text" class="input-text" style="width:200px" name="key" placeholder="店铺名称/位置编号/设备编号"
                   v-model="key">
            <input id="hiddenText" type="text" style="display:none" class="input-text">
            <span class="select-box" style="width:110px;">
                    <select id="province" class="select" v-model="province" @change="setCitys">
                        <option value="">-请选择省份-</option>
						<option v-for="p in provinces" :value="p">{{p.name}}</option>

                    </select>
                </span>

            <span class="select-box" style="width:110px;">
                    <select id="city" class="select" v-model="city" @change="setAreas">
                        <option value="">-请选择市-</option>
						<option v-for="p in citys" :value="p">{{p.name}}</option>

                    </select>
                </span>

            <span class="select-box" style="width:120px;">
                    <select id="area" class="select" v-model="area">
                        <option value="">-请选择区/县-</option>
						<option v-for="p in areas" :value="p">{{p.name}}</option>
                    </select>
                </span>
            <span class="select-box" style="width:150px;">
                    <select id="equipmentSource" class="select" v-model="equipmentSource">
                        <option value="">-请选择终端商-</option>
                        <option v-for="p in dictBusiness" :value="p.code">{{p.name}}</option>
                    </select>
                </span>
            <span class="select-box" style="width:150px;">
                    <select id="channelBusiness" class="select" v-model="channelBusiness">
                        <option value="">-请选择渠道商-</option>
                        <option v-for="p in dictBusiness" :value="p.code">{{p.name}}</option>
                    </select>
                </span>
            <span class="select-box" style="width:150px;">
                    <select id="agentBusiness" class="select" v-model="agentBusiness">
                        <option value="">-请选择代理商-</option>
                        <option v-for="p in dictBusiness" :value="p.code">{{p.name}}</option>
                    </select>
                </span>
            <span class="select-box" style="width:150px;">
                    <select id="runStatus" class="select" v-model="runStatus">
                        <option value="">-请选择运行状态-</option>
                        <option value="1">在线</option>
                        <option value="2">离线</option>
                    </select>
                </span>
            <span class="select-box" style="width:150px;">
                    <select id="status" class="select" v-model="status">
                        <option value="-1">-请选择状态-</option>
                        <option value="0">失效</option>
                        <option value="1">未注册</option>
                        <option value="2">已注册</option>
                        <option value="3">试运行</option>
                        <option value="4">运行</option>
                        <option value="5">维护</option>
                        <option value="6">未认证</option>
                    </select>
                </span>
            <div id="selectBtnEnter" class="btn btn-primary" v-on:click="getList('search')">查询</div>
        </form>
        <div class="cl pd-5 bg-1 bk-gray mt-20">
	            <span class="l">
	                <a class="btn btn-primary radius addFormula" id="addButton" v-on:click="openImportPanel">导入设备</a>
	                 <a class="btn btn-primary radius" v-on:click="batchUpdateStatus('3')">试运行</a>
	                <a class="btn btn-primary radius" v-on:click="batchUpdateStatus('4')">运行</a>
	                <a class="btn btn-primary radius" v-on:click="batchUpdateStatus('5')">维护</a>
	                <a class="btn btn-primary radius" v-on:click="batchUpdateStatus('1')">未注册</a>
                    <!--<a class="btn btn-primary radius"  v-on:click="">导入</a>-->
                    <!--<a class="btn btn-primary radius"  v-on:click="remote('0')">关机</a>-->
                    <a class="btn btn-primary radius" v-on:click="remote('1')">重启</a>
                    <a class="btn btn-primary radius" v-on:click="remote('2')">强制上传日志</a>
                    <a class="btn btn-primary radius" v-on:click="exportHardware">导出授权信息</a>
                    <a class="btn btn-primary radius" v-on:click="importGrantInfo">导入授权文件</a>
                    <a class="btn btn-primary radius" v-on:click="postion('1')">批量设置状态</a>
                    <a class="btn btn-primary radius" v-on:click="photo">批量设置图片上传</a>
                    <a class="btn btn-primary radius" v-on:click="postion('2')">批量撤机</a>
                    <!--<a class="btn btn-primary radius" href="/page/trigger.html">总触发量</a>-->
                </span>

            <span class="r" v-cloak>
	            	共有数据：{{pageInfo.total}}条
	            </span>

        </div>
        <div style="float: left; padding: 8px;">
                <span class="select-box" style="width:150px;">
                        <select name="volume" v-model="volume" id="volume" class="select">
                            <option value="">--请选择音量--</option>
                            <option v-for="volume in 11" :value="(volume-1)*10">{{volume-1}}0</option>
                        </select>
                </span>
            <a class="btn btn-primary radius" v-on:click="volumeSetVolume()">设置音量</a>
            <input type="text" v-model="startTime" id="startTime-d" name="startTime"
                   @focus="changeTime('startTime-d')"
                   onfocus="WdatePicker({skin:'default',dateFmt:'HH:mm:ss'})"
                   class="input-text Wdate" style="width:130px;" placeholder="开机时间">-
            <input type="text" v-model="shutdownTime" id="shutdownTime-d" name="shutdownTime"
                   @focus="changeTime('shutdownTime-d')"
                   onfocus="WdatePicker({skin:'default',dateFmt:'HH:mm:ss'})"
                   class="input-text Wdate" style="width:130px;" placeholder="关机时间">
            <a class="btn btn-primary radius" v-on:click="setOnOffTime()">设置开/关机时间</a>
            <!--<span>
                <span class="select-box" style="width:150px;">
                <select id="backgroundMusic" class="select" v-model="province" @change="setCitys">
                    <option value="">-请待机背景音乐-</option>
                    <option v-for="p in provinces" :value="p">{{p.name}}</option>
                </select>
            </span>
            </span>
            <a class="btn btn-primary radius"  v-on:click="volumeSetVolume(volume)">设置待机背景音乐</a>
            </span>-->
            <span>设备总数:</span>
            <span>{{total}}</span>
            <span>在线:</span>
            <span>{{num}}</span>
            <span>在线率:</span>
            <span>{{onlineRate}}%</span>
        </div>
        <form>
            <table class="table table-border table-bordered table-bg" id="eqList">
                <thead>
                <tr class="text-c">
                    <th nowrap="nowrap" width=''>
                        <input type="checkbox" name="all" id="all" v-model="all" @click="checkAll">
                    </th>
                    <th nowrap="nowrap">位置编号</th>
                    <th nowrap="nowrap">设备编号</th>
                    <th nowrap="nowrap">终端商</th>
                    <th nowrap="nowrap">渠道商</th>
                    <th nowrap="nowrap">代理商</th>
                    <th nowrap="nowrap">店铺名称</th>
                    <th nowrap="nowrap">设备状态</th>
                    <th nowrap="nowrap">运行状态</th>
                    <th nowrap="nowrap">昨日在线时间</th>
                    <th nowrap="nowrap">昨天关机时间</th>
                    <th nowrap="nowrap">今天开机时间</th>
                    <th nowrap="nowrap">上次访问</th>
                    <th nowrap="nowrap">网络环境</th>
                    <th nowrap="nowrap">信号强度</th>
                    <th nowrap="nowrap">物联网卡号</th>
                    <th nowrap="nowrap">定时开机</th>
                    <th nowrap="nowrap">定时关机</th>
                    <th nowrap="nowrap">设备音量</th>
                    <th nowrap="nowrap">远程重启</th>
                    <th nowrap="nowrap">调试模式</th>
                    <th nowrap="nowrap">优先渠道</th>
                    <th nowrap="nowrap">授权状态</th>
                    <th nowrap="nowrap">省</th>
                    <th nowrap="nowrap">市</th>
                    <th nowrap="nowrap">区</th>
                    <th nowrap="nowrap">详细地址</th>
                    <th nowrap="nowrap">安装日期</th>
                    <th nowrap="nowrap">安装人</th>
                    <th nowrap="nowrap">上传人脸图片</th>
                    <th nowrap="nowrap">上传广告截图</th>
                    <th nowrap="nowrap">上传环境图片</th>
                    <th nowrap="nowrap">清空设备广告缓存</th>
                    <th nowrap="nowrap">固件升级</th>
                    <th nowrap="nowrap">MAC</th>
                    <th nowrap="nowrap">客户端版本</th>
                    <th nowrap="nowrap">过渡版本</th>
                    <th nowrap="nowrap" width='16.091%'>固件版本</th>
                    <th nowrap="nowrap">硬件信息</th>
                    <th nowrap="nowrap">强制<br/>上传日志</th>
                    <th nowrap="nowrap">lic文件路劲</th>
                    <th nowrap="nowrap">设备已用容量</th>
                    <th nowrap="nowrap" width='16.091%'>设备功能操作</th>
                </tr>
                </thead>
                <tbody v-cloak>
                <tr class="text-c" v-for="(item,index) in pageInfo.list">
                    <td nowrap="nowrap">
                        <input type="checkbox" :value="item.id" v-model="ids" name="id">
                    </td>
                    <td nowrap="nowrap">{{item.postionCode}}</td>
                    <td nowrap="nowrap">{{item.equipmentCode}}</td>
                    <td nowrap="nowrap">{{item.equipmentSource}}</td>
                    <td nowrap="nowrap">{{item.channelBusiness}}</td>
                    <td nowrap="nowrap">{{item.agentBusiness}}</td>
                    <td nowrap="nowrap">{{item.shopName}}</td>
                    <td nowrap="nowrap">
                        <span v-if="item.status=='1'">未注册</span>
                        <span v-else-if="item.status=='0'">失效</span>
                        <span style="color: #0000CC" v-else-if="item.status=='2'">已注册</span>
                        <span style="color: #985f0d" v-else-if="item.status=='3'">试运行</span>
                        <span style="color: #00B83F" v-else-if="item.status=='4'">运行</span>
                        <span style="color: red" v-else-if="item.status=='5'">维护</span>
                        <span v-else-if="item.status=='6'">未认证</span>
                    </td>
                    <td nowrap="nowrap">
                                <span v-if="item.runStatus=='在线'" style="color: #00B83F">
                                    {{item.runStatus}}
                                </span>
                        <span v-if="item.runStatus=='离线'" style="color: red">
                                    {{item.runStatus}}
                                </span>
                    </td>
                    <td nowrap="nowrap">{{item.onlineTime | timeStamps}}</td>
                    <td nowrap="nowrap">{{item.lineOff}}</td>
                    <td nowrap="nowrap">{{item.lineOn}}</td>
                    <td nowrap="nowrap">{{item.visitTime}}</td>
                    <td nowrap="nowrap">{{item.signal}}</td>
                    <td nowrap="nowrap">{{item.netSignal}}</td>
                    <td nowrap="nowrap">{{item.netCode}}</td>
                    <td nowrap="nowrap">{{item.startTime}}</td>
                    <td nowrap="nowrap">{{item.shutdownTime}}</td>
                    <td nowrap="nowrap">{{item.volume}}</td>
                    <td nowrap="nowrap">
                        <span v-if="item.isRestart=='1'">设备重启中</span>
                    </td>
                    <td>
                                <span v-if="item.debug=='1'">
                                    <a class="btn btn-primary radius" @click="debug(index)">关闭</a>
                                </span>
                        <span v-if="item.debug=='0'">
                                    <a class="btn btn-primary radius" @click="debug(index)">开启</a>
                                </span>
                    </td>
                    <td>
                        <!--<span v-if="item.channel == '1'">奥森平台</span>-->
                        <!--<span v-else-if="item.channel == '2'">美术平台</span>-->
                        <!--<span v-else-if="item.channel == '3'">百度平台</span>-->
                        <select id="channel" class="select" v-model="item.channel" @change="channel(index)">
                            <option value="1">奥森平台</option>
                            <option value="2">美数平台</option>
                            <option value="3">百度平台</option>
                            <option value="4">点屏平台</option>
                            <option value="5">易售平台</option>
                            <option value="6">钼媒平台</option>
                        </select>
                    </td>
                    <td nowrap="nowrap">授权状态
                        <span v-if="item.fci=='111'">授权成功</span>
                        <span v-if="item.fci=='110'">模块初始化失败</span>
                        <span v-if="item.fci=='100'">环境初始化失败</span>
                        <span v-if="item.fci=='000'">未授权</span>
                        {{item.fci}}
                    </td>
                    <td nowrap="nowrap">{{item.province}}</td>
                    <td nowrap="nowrap">{{item.city}}</td>
                    <td nowrap="nowrap">{{item.area}}</td>
                    <td nowrap="nowrap">{{item.address}}</td>
                    <td nowrap="nowrap">{{item.installDate}}</td>
                    <td nowrap="nowrap">{{item.installBy}}</td>
                    <td nowrap="nowrap">
                                <span v-if="item.isUploadFace=='1'">
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'1')">已开启</a>
                                </span>
                        <span v-else-if="item.isUploadFace=='0'">
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'1')">已关闭</a>
                                </span>
                        <span v-else>
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'1')">未设置</a>
                                </span>
                    </td>
                    <td nowrap="nowrap">
                                <span v-if="item.isUploadScreenshots=='1'">
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'2')">已开启</a>
                                </span>
                        <span v-else-if="item.isUploadScreenshots=='0'">
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'2')">已关闭</a>
                                </span>
                        <span v-else>
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'2')">未设置</a>
                                </span>
                    </td>
                    <td nowrap="nowrap">
                                <span v-if="item.isUploadEnvironment=='1'">
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'3')">已开启</a>
                                </span>
                        <span v-else-if="item.isUploadEnvironment=='0'">
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'3')">已关闭</a>
                                </span>
                        <span v-else>
                                    <a class="btn btn-primary radius" @click="updatePhoto(index,'3')">未设置</a>
                                </span>
                    </td>
                    <td nowrap="nowrap">
                                <span v-if="item.clearEquipment=='1'">
                                    <a class="btn btn-primary radius" @click="updateClearEquipment(index)">已开启</a>
                                </span>
                        <span v-else>
                                    <a class="btn btn-primary radius" @click="updateClearEquipment(index)">已关闭</a>
                                </span>
                    </td>
                    <td nowrap="nowrap">
                                <span v-if="item.firmwareStatus=='1'">
                                    <a class="btn btn-success radius" @click="updateFirmwareStatus(index)">已开启</a>
                                </span>
                        <span v-else>
                                    <a class="btn btn-primary radius" @click="updateFirmwareStatus(index)">已关闭</a>
                                </span>
                    </td>
                    <td nowrap="nowrap">{{item.mac}}</td>
                    <td nowrap="nowrap">{{item.versionName}}</td>
                    <td nowrap="nowrap">
                                <span v-if="item.middleVersion.indexOf('在线')!=-1" style="color: #00B83F">
                                    {{item.middleVersion}}
                                </span>
                        <span v-if="item.middleVersion.indexOf('离线')!=-1" style="color: red">
                                    {{item.middleVersion}}
                                </span>
                    </td>
                    <td>{{item.firmware}}</td>
                    <td>{{item.hardware}}</td>
                    <td nowrap="nowrap">
                        <span style="color: red" v-if="item.uploadLog=='1'">是</span>
                        <span v-else-if="item.uploadLog=='0'">否</span>
                    </td>
                    <td>{{item.lic}}</td>
                    <td>{{item.storage}}</td>
                    <td nowrap="nowrap">
                        <a class="btn btn-primary radius" @click="updateInit(index)">修改</a>
                        <a class="btn btn-primary radius" @click="deleteEQ(index)">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>

        <div class="pageBox" v-cloak id="pageBox">
            <div class="pageInfo">显示 <span id="startRow">{{pageInfo.startRow}}</span> 到 <span id="endRow">{{pageInfo.endRow}}条</span>&nbsp;&nbsp;&nbsp;&nbsp;{{pageInfo.pages}}页&nbsp;&nbsp;&nbsp;&nbsp;共
                <span id="total">{{pageInfo.total}}</span> 条
                <select v-model="selectedPageSize" v-on:change="getList('changePageSize')">
                    <option value="5">5</option>
                    <option value="10">10</option>
                    <option value="15">15</option>
                    <option value="20">20</option>
                    <option value="50">50</option>
                </select>
            </div>
            <ul class="pagination" id="pagination"></ul>
        </div>
        <div class="tips" id="noData" align="center" style="display: none">
            无数据
        </div>
    </div>

    <!--TODO 添加、更新弹窗-->
    <form class="form form-horizontal" id="addPanel" style="display: none">
        <table class="table" border='0' width='100%'>
            <tr>
                <td width="30%" align="right" nowrap="nowrap">
                </td>
                <td width="30%" style="margin-left: 0px">
                </td>
                <td width="40%"></td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设备编号：
                    </label>
                </td>
                <td>
                    <input type="text" class="input-text radius" name="equipmentCode" v-model="equipmentCode"
                           placeholder="请填写设备编号"/>
                </td>
                <td><span class="Validform_checktip Validform_wrong errorInfo" v-if="equipmentCodeErr!=''">{{equipmentCodeErr}} </span>
                </td>
            </tr>

            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        位置编号：
                    </label>
                </td>
                <td>
                    <input type="text" class="input-text radius" name="postionCode" v-model="postionCode"
                           placeholder="请填写位置编号"/>
                </td>
                <td><span class="Validform_checktip Validform_wrong errorInfo" v-if="postionCodeErr!=''">{{postionCodeErr}} </span>
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        安装日期：
                    </label>
                </td>
                <td>
                    <input type="text" v-model="installDate" id="installDate-d" name="installDate"
                           @focus="changeTime('installDate-d')"
                           onfocus="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                           class="input-text Wdate" placeholder="请输入安装日期" readonly="readonly">
                </td>

                <td><span class="Validform_checktip Validform_wrong errorInfo" v-if="installDateErr!=''">{{installDateErr}} </span>
                </td>
            </tr>

            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        安装人：
                    </label>
                </td>
                <td>
                    <input type="text" class="input-text radius" name="installBy" v-model="installBy"
                           placeholder="请填写安装人"/>
                </td>

                <td><span class="Validform_checktip Validform_wrong errorInfo"
                          v-if="installByErr!=''">{{installByErr}} </span>
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>终端商：
                    </label>
                </td>
                <td>
                            <span class="select-box" style="width:150px;">
                                <select name="equipmentSource" v-model="equipmentSource" class="select radius">
                                    <option value="">请选择终端商</option>
                                    <option v-for="p in dictBusiness" :value="p.code">{{p.name}}</option>
                                </select>
                            </span>
                </td>
                <td><span class="Validform_checktip Validform_wrong errorInfo"
                          v-if="equipmentSourceErr!=''">{{equipmentSourceErr}} </span>
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>渠道商：
                    </label>
                </td>
                <td>
                            <span class="select-box" style="width:150px;">
                                <select name="channelBusiness" v-model="channelBusiness" class="select radius">
                                    <option value="">请选择渠道商</option>
                                    <option v-for="p in dictBusiness" :value="p.code">{{p.name}}</option>
                                </select>
                            </span>
                </td>
                <td><span class="Validform_checktip Validform_wrong errorInfo"
                          v-if="channelBusinessErr!=''">{{channelBusinessErr}} </span>
                </td>
            </tr>
            <tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>代理商：
                    </label>
                </td>
                <td>
                            <span class="select-box" style="width:150px;">
                                <select name="agentBusiness" v-model="agentBusiness" class="select radius">
                                    <option value="">请选择代理商</option>
                                    <option v-for="p in dictBusiness" :value="p.code">{{p.name}}</option>
                                </select>
                            </span>
                </td>
                <td><span class="Validform_checktip Validform_wrong errorInfo"
                          v-if="agentBusinessErr!=''">{{agentBusinessErr}} </span>
                </td>
            </tr>
            <!--<tr>
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设备状态：
                    </label>
                </td>
                <td>
                            <span class="select-box" style="width:150px;">
                                <select name="status" v-model="status" class="select radius">
                                    <option value="">请选择</option>
                                    <option value="1">未注册</option>
                                    <option value="2">已注册</option>
                                    <option value="3">试运行</option>
                                    <option value="4">运行</option>
                                    <option value="5">维护</option>
                                </select>
                            </span>
                </td>
                <td><span class="Validform_checktip Validform_wrong errorInfo"
                          v-if="statusErr!=''">{{statusErr}} </span>
                </td>
            </tr>-->
            <tr>
                <td width="100%" class="text-r" colspan="2">
                    <a class="btn btn-primary radius" style="margin-right: 10px;" id="saveDictType"
                       v-on:click="save">保存</a>
                    <a class="btn btn-default radius" id="addCancel" v-on:click="cancel">取消</a>
                </td>
                <td width="40%"></td>
            </tr>
        </table>
    </form>


    <form class="form form-horizontal" id="importPanel" style="display: none" enctype="multipart/form-data"
          method="post">
        <table class="table" border='0' width='100%'>
            <tr>
                <td width="20%" align="right" nowrap="nowrap">
                </td>
                <td width="40%" style="margin-left: 0px">
                </td>
                <td width="40%"></td>
            </tr>

            <tr id="t1">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设备数据文件：
                    </label>
                </td>
                <td style="width: 200px">
                    <input type="file" class="input-text radius" multiple="multiple" name="file"
                           placeholder="请选择导入的数据文件" id="file"/>
                </td>
                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="fileErr!=''">
                            {{fileErr}}
                        </span>
                </td>

            </tr>

            <tr>
                <td width="100%" class="text-r" colspan="3">
                    <a class="btn btn-primary radius f-l ml-50 " style="width: 180px;" id=""
                       v-on:click="importEquipment">保存</a>
                </td>
            </tr>

            <tr>
                <td colspan="3">
                    <div class="f-l ml-50 errMsg error-msg" style="height: 70px;width: 500px">
                    </div>
                </td>
            </tr>
        </table>
    </form>
    <form class="form form-horizontal" id="grant" style="display: none" enctype="multipart/form-data"
          method="post">
        <table class="table" border='0' width='100%'>
            <tr>
                <td width="20%" align="right" nowrap="nowrap">
                </td>
                <td width="40%" style="margin-left: 0px">
                </td>
                <td width="40%"></td>
            </tr>

            <tr id="tt1">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设备授权信息：
                    </label>
                </td>
                <td style="width: 200px">
                    <input type="file" class="input-text radius" name="info" placeholder="请选择导入的授权信息文件" id="file1"/>
                </td>
                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="file1Err!=''">
                            {{file1Err}}
                        </span>
                </td>
            </tr>
            <tr id="tt2">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>授权文件：
                    </label>
                </td>
                <td style="width: 200px">
                    <input type="file" class="input-text radius" name="lic" placeholder="请选择导入的授权文件" id="file2"/>
                </td>
                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="file2Err!=''">
                            {{file2Err}}
                        </span>
                </td>
            </tr>

            <tr>
                <td width="100%" class="text-r" colspan="3">
                    <a class="btn btn-primary radius f-l ml-50 " style="width: 180px;"
                       v-on:click="importGrant">保存</a>
                </td>
            </tr>

            <tr>
                <td colspan="3">
                    <div class="f-l ml-50 errMsg error-msg" style="height: 70px;width: 500px">
                    </div>
                </td>
            </tr>
        </table>
    </form>


    <form class="form form-horizontal" id="importPanel1" style="display: none" enctype="multipart/form-data"
          method="post">
        <table class="table" border='0' width='100%'>
            <tr>
                <td width="20%" align="right" nowrap="nowrap">
                </td>
                <td width="40%" style="margin-left: 0px">
                </td>
                <td width="40%"></td>
            </tr>
            <tr id="t3">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设备文件：
                    </label>
                </td>
                <td>
                    <input type="file" class="input-text radius" name="files" placeholder="请选择导入的数据文件" id="filed"/>
                </td>

                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="fileErr!=''">
                            {{fileErr}}
                        </span>
                </td>
            </tr>

            <tr id="t8">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设置状态：
                    </label>
                </td>
                <td id="t2">
                    <select name="status" v-model="status" class="input-text radius">
                        <option value="3">试运行</option>
                        <option value="4">运&nbsp;&nbsp;&nbsp;行</option>
                    </select>
                </td>
                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="statusErr!=''">
                            {{statusErr}}
                        </span>
                </td>
            </tr>

            <tr>
                <td width="100%" class="text-r" colspan="3">
                    <a class="btn btn-primary radius f-l ml-50 " style="width: 180px;" @click="importA">保存</a>
                </td>
            </tr>

            <tr>
                <td colspan="3">
                    <div class="f-l ml-50 errMsg error-msg" style="height: 70px;width: 500px">
                    </div>
                </td>
            </tr>
        </table>
    </form>

    <form class="form form-horizontal" id="importPanel2" style="display: none" enctype="multipart/form-data"
          method="post">
        <table class="table" border='0' width='100%'>
            <tr>
                <td width="20%" align="right" nowrap="nowrap">
                </td>
                <td width="40%" style="margin-left: 0px">
                </td>
                <td width="40%"></td>
            </tr>
            <tr id="t4">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设置图片上传设备文件：
                    </label>
                </td>
                <td>
                    <input type="file" class="input-text radius" name="files" placeholder="请选择导入的数据文件" id="filed1"/>
                </td>

                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="fileErr!=''">
                            {{fileErr}}
                        </span>
                </td>
            </tr>

            <tr id="t5">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设置人脸图片上传：
                    </label>
                </td>
                <td>
                    <select name="isUploadFace" v-model="isUploadFace" class="input-text radius">
                        <option value="">请选择</option>
                        <option value="0">关闭</option>
                        <option value="1">开启</option>
                    </select>
                </td>
                <td>
                        <span class="Validform_checktip Validform_wrong errorInfo" v-if="statusErr!=''">
                            {{statusErr}}
                        </span>
                </td>
            </tr>

            <tr id="t6">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设置设备截屏上传：
                    </label>
                </td>
                <td>
                    <select name="isUploadScreenshots" v-model="isUploadScreenshots" class="input-text radius">
                        <option value="">请选择</option>
                        <option value="0">关闭</option>
                        <option value="1">开启</option>
                    </select>
                </td>
            </tr>

            <tr id="t7">
                <td align="right" nowrap="nowrap">
                    <label class="form-label" style="padding:0px">
                        <span class="c-red">*</span>设置设备截屏上传：
                    </label>
                </td>
                <td>
                    <select name="isUploadEnvironment" v-model="isUploadEnvironment" class="input-text radius">
                        <option value="">请选择</option>
                        <option value="0">关闭</option>
                        <option value="1">开启</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td width="100%" class="text-r" colspan="3">
                    <a class="btn btn-primary radius f-l ml-50 " style="width: 180px;" @click="importB">设置</a>
                </td>
            </tr>

            <tr>
                <td colspan="3">
                    <div class="f-l ml-50 errMsg error-msg" style="height: 70px;width: 500px">
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
<script type="text/javascript" src="../js/common/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="../lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="../js/common/H-ui.js"></script>
<script type="text/javascript" src="../js/common/H-ui.admin.js"></script>
<script type="text/javascript" src="../js/utils/utils.js"></script>
<script type="text/javascript" src="../js/currency/vue.js"></script>
<script type="text/javascript" src="../js/currency/vue-resource.min.js"></script>
<script type="text/javascript" src="../js/currency/base.js"></script>
<script type="text/javascript" src="../js/currency/jqPaginator.js"></script>
<script type="text/javascript" src="../js/equipment.js"></script>
